package tragame.interfaces;

import java.rmi.Remote;
import java.rmi.RemoteException;

import tragame.game.Unit.RaceType;
import tragame.game.Unit.UnitType;

public interface IVillage extends Remote {

	public String getPlayer() throws RemoteException;
	public String getName() throws RemoteException;
	public String getRace()throws RemoteException;	
	public void addUnit(UnitType type, RaceType race) throws RemoteException;	
	public IUnit getUnitAt(int position) throws RemoteException;	
	public void produce() throws RemoteException;		
	public int getCurFood() throws RemoteException;		
	public int getCurIron() throws RemoteException;		
	public int getCurSoil() throws RemoteException;		
	public int getCurWood()throws RemoteException;
	public int getMaxFood()throws RemoteException;
	public int getMaxIron() throws RemoteException;
	public int getMaxSoil() throws RemoteException;
	public int getMaxWood() throws RemoteException;		
	public void setName(String name)throws RemoteException;		
	public void setRace(String race) throws RemoteException;	
	public void setMaxFood(int maxFood) throws RemoteException;	
	public void setMaxIron(int maxIron)throws RemoteException;
	public void setMaxSoil(int maxSoil) throws RemoteException;
	public void setMaxWood(int maxWood) throws RemoteException;				
	public IBuilding getBuilding(int number)throws RemoteException;		
	public void setCurFood(int curFood) throws RemoteException;
	public void setCurWood(int curWood) throws RemoteException;
	public void setCurSoil(int curSoil) throws RemoteException;
	public void setCurIron(int curIRon) throws RemoteException;
}


